//
//  ViewController.m
//  XYLBaiduMap2017
//
//  Created by 夏玉林 on 17/2/17.
//  Copyright © 2017年 夏玉林. All rights reserved.
//

#import "ViewController.h"
#import "RootViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self configUI];
    // Do any additional setup after loading the view.
}
- (void)configUI{
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.backgroundColor = [UIColor lightGrayColor];
    button.frame = CGRectMake(80, 88,50, 50);
    
    [self.view addSubview:button];
    
    [button addTarget:self action:@selector(clickForbutton) forControlEvents:UIControlEventTouchUpInside];
}
- (void)clickForbutton{
    [self.navigationController pushViewController:[RootViewController new] animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
